//---------------------------------------------------------------------
//  This file is part of the Background Motion solution.
// 
//  Copyright (C) Mindscape (TM).  All rights reserved.
//  http://www.mindscape.co.nz
// 
//  THIS CODE AND INFORMATION ARE PROVIDED AS IS WITHOUT WARRANTY OF ANY
//  KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
//  IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
//  PARTICULAR PURPOSE.
//---------------------------------------------------------------------

using System.Xml;
using Mindscape.BackgroundMotion.Website.Controllers;
using Mindscape.BackgroundMotion.Website.Infrastructure;
using Mindscape.BackgroundMotion.Website.Views;

namespace Mindscape.BackgroundMotion.Website
{
  public partial class Rss : PageBase<RssPresenter, IRssView, IContributionController>, IRssView
  {
    /// <summary>
    /// An XML document which contains the DOM instance of the RSS feed
    /// </summary>
    /// <value></value>
    public XmlDocument Feed
    {
      set 
      {
        Response.Clear();
        Response.ContentType = "text/xml";
        Response.Write(value.OuterXml);
        Response.End();
      }
    }
  }
}